package com.egrand.sweetapi.core.exception;

/**
 * Assert错误异常
 */
public class AssertException extends RuntimeException {

    private int code = -9;

    public AssertException() {

    }

    public AssertException(String msg) {
        super(msg);
    }

    public AssertException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public AssertException(int code, String msg) {
        super(msg);
        this.code = code;
    }

    public AssertException(int code, String msg, Throwable cause) {
        super(msg, cause);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


}
